/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain;

import com.anwen.mongo.annotation.collection.CollectionField;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.Date;

@Data
public class IsfdMeshCompareObject {

    /**
     * 机型
     */
    @CollectionField("model_number")
    @NotBlank(message = "modelNumber不能为空!")
    private String modelNumber;

    /**
     * 部段
     */
    @CollectionField("section_number")
    private String sectionNumber;

    /**
     * 批次
     */
    @CollectionField("batch_number")
    @NotBlank(message = "batchNumber不能为空!")
    private String batchNumber;

    /**
     * 文件名
     */
    @CollectionField("file_name")
    @NotBlank(message = "fileName不能为空!")
    private String fileName;

    /**
     * 上传时间
     */
    @CollectionField("upload_time")
    @NotBlank(message = "uploadTime不能为空!")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date uploadTime;

    /**
     * 完整文件路径
     */
    @CollectionField("file_path")
    @NotBlank(message = "filePath不能为空!")
    private String filePath;
}
